package a.d;

public final class w
  implements Comparable
{
  public final double a;
  public final double b;
  public static final w c = new w(0.0D, 0.0D);
  public static boolean d;
  public static boolean e;
  
  public w()
  {
    this.a = 0.0D;
    this.b = 0.0D;
  }
  
  public w(double paramDouble1, double paramDouble2)
  {
    this.a = paramDouble1;
    this.b = paramDouble2;
  }
  
  public final double a()
  {
    return this.a;
  }
  
  public final double b()
  {
    return this.b;
  }
  
  public double a(double paramDouble1, double paramDouble2)
  {
    paramDouble1 -= this.a;
    paramDouble2 -= this.b;
    return Math.sqrt(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2);
  }
  
  public double a(w paramw)
  {
    double d1 = this.a - paramw.a;
    double d2 = this.b - paramw.b;
    return Math.sqrt(d1 * d1 + d2 * d2);
  }
  
  public static double a(w paramw1, w paramw2)
  {
    return Math.sqrt((paramw1.a - paramw2.a) * (paramw1.a - paramw2.a) + (paramw1.b - paramw2.b) * (paramw1.b - paramw2.b));
  }
  
  public static double a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    paramDouble1 -= paramDouble3;
    paramDouble2 -= paramDouble4;
    return Math.sqrt(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2);
  }
  
  public static w b(w paramw1, w paramw2)
  {
    return new w(paramw1.a + paramw2.a, paramw1.b + paramw2.b);
  }
  
  public static w c(w paramw1, w paramw2)
  {
    return new w(paramw1.a - paramw2.a, paramw1.b - paramw2.b);
  }
  
  public static w d(w paramw1, w paramw2)
  {
    return new w((paramw1.a + paramw2.a) / 2.0D, (paramw1.b + paramw2.b) / 2.0D);
  }
  
  public static w b(w paramw)
  {
    return new w(paramw.b, paramw.a);
  }
  
  public w b(double paramDouble1, double paramDouble2)
  {
    return new w(this.a + paramDouble1, this.b + paramDouble2);
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = e;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof w)) {
        return false;
      }
    }
    w localw = (w)paramObject;
    if ((bool) || (localw.a == this.a)) {
      if (bool) {}
    }
    return localw.b == this.b;
  }
  
  public int hashCode()
  {
    long l = Double.doubleToLongBits(this.a) << 1 ^ Double.doubleToLongBits(this.b);
    return (int)(l >> 32 ^ l);
  }
  
  public String toString()
  {
    return "X: " + this.a + " Y: " + this.b;
  }
  
  public int compareTo(Object paramObject)
  {
    boolean bool = e;
    if (!bool) {
      if (this == paramObject) {
        return 0;
      }
    }
    w localw = (w)paramObject;
    if (!bool) {
      if (this.a < localw.a) {
        return -1;
      }
    }
    if (!bool) {
      if (this.a > localw.a) {
        return 1;
      }
    }
    if (!bool) {
      if (this.b < localw.b) {
        return -1;
      }
    }
    if (!bool) {
      if (this.b > localw.b) {
        return 1;
      }
    }
    return 0;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.d.w
 * JD-Core Version:    0.7.0.1
 */